/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-  */
/*
 * main.c
 * Copyright (C) 2012 Esprit <anouar.chemek@esprit.tn>
	 * 
 * Prosit4bis2 is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
	 * 
 * Prosit4bis2 is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */




#include <stdio.h>
#include "crypt.h"
#include "compress.h"
#include "iosms.h"




int main()
{

	int n=3;
	char sms[MAX];
	char cryptedsms[MAX];
	char compSms[MAX];
	

	printf("\nEcrire votre SMS: ")
	getSms(sms);
	//gets(sms);
	cryptCesar(sms,cryptedsms,n);
	printf("\nla chaine a crypter est:");
	putSms(sms);
	//puts(sms);
	printf("\nla chaine crypté est:");
	//puts(cryptedsms);
	putSms(cryptedsms);

	decryptCesar(cryptedsms,sms,n);

	printf("\nla chaine decryptee est:");
	putSms(sms);

	printf("\ncompression\n");

	compRLE(sms,compSms);

	putSms(compSms);

	
	
		return 0;
}



